#include"text.h"
size_t npos = -1;

int main()
{
	/*Space::string S1("hello word");
	cout << S1.Read() << endl;*/
	
	/*for (int i = 0; i < S1.size(); i++)
	{
		S1[i]++;
	}
	for (int i = 0; i < S1.size(); i++)
	{
		cout << S1[i] << " ";
	}
	cout << endl;*/

	//Space::string::iterator it = S1.begin();
	/*while (it != S1.end())
	{
		cout << (--(*it)) << " ";
		it++;
	}
	cout << endl;
	for (auto S : S1)
	{
		cout << S << " ";
	}*/
	//cout << endl;

	/*Space::string S1("hello word");

	S1.push_back('&');
	S1 += '&';
	cout << S1.Read() << endl;

	S1.append("how are you");
	S1 += "how are you";
	cout << S1.Read() << endl;*/

	//S1.insert_t(1, 3, '&');
	//cout << S1.Read() << endl;
	//S1.insert_t(3, 3, '&');
	//cout << S1.Read() << endl;
	//S1.insert_t(5, 3, '&');
	//cout << S1.Read() << endl;

	//Space::string S1("hello");
	//S1.insert(1, "123");
	//cout << S1.Read() << endl;
	//S1.insert(4, "456");
	//cout << S1.Read() << endl;
	//S1.insert(7, "789");
	//cout << S1.Read() << endl;

	//Space::string S1("hello");
	//S1.erase(3);
	//S1.erase_t(5, 1);
	//cout << S1.Read() << endl;
	//S1.erase_t(4, 1);
	//cout << S1.Read() << endl;
	//S1.erase_t(3, 1);
	//cout << S1.Read() << endl;

	/*Space::string S1("hello");
	size_t tmp = S1.find(1, "llo");
	cout << tmp << endl;
	S1.substr(1, 2);
	S1.substr(1, tmp);
	S1.substr(tmp, tmp+1);
	S1.substr(4, tmp);*/

	/*Space::string S1("hello word");*/

	//S1.resize(12);
	//cout << S1.Read() << endl;
	//S1.resize(15, '*');
	//cout << S1.Read() << endl;
	//Space::string S1("hello word");
	//S1.insert_t(5, 1, '\0');
	//cout << S1.Read() << endl;
	//cout << S1 << endl;

	//cin >> S1;
	//cout << S1 << endl;

	//Space::string S1("hello");
	//Space::string S2("hellz");
	//Space::string S3("hllo");
	//cout << (S1 > S2) << endl;
	//cout << (S2 > S3) << endl;
	//cout << (S3 > S1) << endl;

	Space::string S1("hello");
	Space::string S2;

	S2 = S1;

	cout << S2 << endl;

	return 0;
}